//
//  SJZMineHeaderView.m
//  SJZBusiness
//
//  Created by 彭利民 on 2018/5/7.
//  Copyright © 2018年 bwton. All rights reserved.
//

#import "SJZMineHeaderView.h"
@interface SJZMineHeaderView()

@property (weak, nonatomic) IBOutlet UILabel *openFlagLabel;

@property (strong, nonatomic) IBOutlet UILabel *nameLabel;

@property (strong, nonatomic) IBOutlet UILabel *phoneLabel;

@end

@implementation SJZMineHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        NSBundle *currentBundle = [NSBundle mainBundle];
        self = [[currentBundle loadNibNamed:NSStringFromClass([SJZMineHeaderView class]) owner:self options:nil] lastObject];
        self.frame = frame;
        
        self.openFlagLabel.layer.borderColor = [UIColor colorWithRed:243/255.0 green:122.9/255.0 blue:127.2/255.0 alpha:1].CGColor;
        self.openFlagLabel.layer.borderWidth = 1;
        
        self.nameLabel.text = [SJZAccountModel userFromArachiver].phone;
        self.phoneLabel.text = [SJZAccountModel userFromArachiver].phone;

    }
    return self;
}

@end
